﻿# Checks if you could Hybridise with the culture without checking for acceptance
is_valid_for_hybridising_trigger = {
	$CHARACTER$ = {
		culture = {
			NOT = { has_same_culture_heritage = $CULTURE$ }
			trigger_if = {
				limit = { has_game_rule = c0da_culture_hybridization_within_heritage_family }
				has_same_heritage_family_as = { TARGET = $CULTURE$ }
			}
			trigger_else_if = {
				limit = { has_game_rule = c0da_culture_hybridization_within_heritage_group }
				has_same_heritage_group_as = { TARGET = $CULTURE$ }
			}
			trigger_else = { always = no }
			culture_age >= culture_hybrid_cooldown
		}
		custom_description = {
			text = culture_present_in_realm_for_hybridization
			any_sub_realm_county = {
				culture = $CULTURE$
			}
		}
		custom_description = {
			text = culture_is_not_parent_culture
			culture = {
				NOT = {
					any_parent_culture = {
						this = $CULTURE$
					}
				}
			}
		}
		custom_description = {
			text = culture_is_not_child_culture
			$CULTURE$ = {
				NOT = {
					any_parent_culture = {
						this = $CHARACTER$.culture
					}
				}
			}
		}
	}
}


aesthetic_is_shown_trigger = {
	scope:character = {
		# The target HERITAGE needs to fulfill ALL of the following:
		any_sub_realm_county = { # HERITAGE needs to be well-represented within your realm
			percent >= 0.1
			culture = { has_cultural_pillar = $HERITAGE$ }
		}
		any_sub_realm_county = { # Language needs to border your own culture
			culture = { has_cultural_pillar = $HERITAGE$ }
			any_neighboring_county = {
				culture = { this = scope:character.culture }
			}
		}
		any_sub_realm_county = { # You need a minimum acceptance with any culture with the HERITAGE
			culture = {
				has_cultural_pillar = $HERITAGE$
				cultural_acceptance = {
					target = scope:character.culture
					value >= 50
				}
			}
		}
	}
}